package com.lolc.bean;

import java.util.List;

public class Lane {
	
	/**
	 * 
	 */
	private String name;
	private String id;
	private List<Pick> counters;
	
	public Lane()
	{
		super();
	}
	public Lane(String id, String name) {
		super();
		this.name = name;
		this.id = id;
	}
	
	public Lane(String id) {
		super();
		this.id = id;
	}
	
	/**
	 * @return the laneName
	 */
	public String getLaneName() {
		return name;
	}

	/**
	 * @param _laneName the laneName to set
	 */
	public void setLaneName(String _laneName) {
		name = _laneName;
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Lane other = (Lane) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
	@Override
	public String toString() {
		return this.name;
	}
	/**
	 * @return the counters
	 */
	public List<Pick> getCounters() {
		return counters;
	}
	/**
	 * @param counters the counters to set
	 */
	public void setCounters(List<Pick> counters) {
		this.counters = counters;
	}

}
